<?php
declare (strict_types = 1);

namespace app\mall\model;

use app\mall\enum\InvoiceStatusEnum;
use app\mall\model\traits\UserTrait;
use think\Model;

/**
 * @mixin Model
 */
class MallInvoice extends MallBase
{
    //
    use UserTrait;

    public function getStatusTextAttr($key, $data)
    {
        return (new InvoiceStatusEnum($data['status']))->getZhName();
    }
}
